home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / textbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-02-06  |  4.8 KB  |  165 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== textbox.css ==================================================
  40.   == Styles used by the XUL textbox element.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44. @namespace html url("http://www.w3.org/1999/xhtml");
  45.  
  46. /* ::::: textbox ::::: */
  47.  
  48. textbox 
  49. {
  50.   -moz-appearance: textfield;
  51.   cursor: text;
  52.   margin: 2px 4px;
  53.   border: 2px solid;
  54.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  55.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  56.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  57.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  58.   padding: 2px 2px 3px 4px;
  59.   background-color: -moz-Field;
  60.   color: -moz-FieldText;
  61. }
  62.  
  63. textbox[empty="true"] {
  64.   color: GrayText;
  65. }
  66.  
  67. html|*.textbox-input, 
  68. html|*.textbox-textarea {
  69.   margin: 0px !important;
  70.   border: none !important;
  71.   padding: 0px !important;
  72.   background-color: inherit;
  73.   color: inherit;
  74.   font: inherit;
  75. }
  76.  
  77. .textbox-input-box menupopup {
  78.   cursor: default;
  79. }
  80.  
  81. /* ..... readonly state ..... */
  82.  
  83. textbox[readonly="true"] {
  84.   background-color: -moz-Dialog;
  85.   color: -moz-DialogText;
  86. }
  87.  
  88. /* ..... disabled state ..... */
  89.  
  90. textbox[disabled="true"] {
  91.   cursor: default;
  92.   background-color: -moz-Dialog;
  93.   color: GrayText;
  94.  
  95. /* ::::: plain textbox ::::: */
  96.  
  97. textbox.plain {
  98.   -moz-appearance: none !important;
  99.   padding: 0px !important;
  100.   margin: 0px !important;
  101.   border: none !important;
  102. }
  103.  
  104. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  105.  
  106. toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
  107.   visibility: hidden;
  108. }
  109.  
  110. /* ::::: context menu ::::: */
  111.  
  112. menuitem:not([type]) {
  113.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  114. }
  115.  
  116. menuitem[cmd="cmd_undo"] {
  117.   list-style-image: url("moz-icon://stock/gtk-undo?size=menu");
  118. }
  119.  
  120. menuitem[cmd="cmd_undo"][disabled] {
  121.   list-style-image: url("moz-icon://stock/gtk-undo?size=menu&state=disabled");
  122. }
  123.  
  124. menuitem[cmd="cmd_cut"] {
  125.   list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
  126. }
  127.  
  128. menuitem[cmd="cmd_cut"][disabled] {
  129.   list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
  130. }
  131.  
  132. menuitem[cmd="cmd_copy"] {
  133.   list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
  134. }
  135.  
  136. menuitem[cmd="cmd_copy"][disabled] {
  137.   list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
  138. }
  139.  
  140. menuitem[cmd="cmd_paste"] {
  141.   list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
  142. }
  143.  
  144. menuitem[cmd="cmd_paste"][disabled] {
  145.   list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
  146. }
  147.  
  148. menuitem[cmd="cmd_delete"] {
  149.   list-style-image: url("moz-icon://stock/gtk-delete?size=menu");
  150. }
  151.  
  152. menuitem[cmd="cmd_delete"][disabled] {
  153.   list-style-image: url("moz-icon://stock/gtk-delete?size=menu&state=disabled");
  154. }
  155.  
  156. menuitem[cmd="cmd_selectAll"] {
  157.   list-style-image: url("moz-icon://stock/gtk-select-all?size=menu");
  158. }
  159.  
  160. menuitem[cmd="cmd_selectAll"][disabled] {
  161.   list-style-image: url("moz-icon://stock/gtk-select-all?size=menu&state=disabled");
  162. }
  163.  
  164.